using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using UnityEngine;
using YooAsset;

public class Splash : MonoBehaviour
{
    public YAssetsLoader MainAssets;
    // Start is called before the first frame update
    void Start()
    {
        YooAssets.Initialize();
        LoadTEST();
    }
    async void LoadTEST()
    {
        await MainAssets.Init();
        var version = await MainAssets.RequestVersion();
        await MainAssets.SetPackageVersion(version);

        await MainAssets.LoadScripts();
        var TESTOBJ = await MainAssets.GetAssetsHandle<GameObject>("TEST_TEST");
        Instantiate(TESTOBJ.AssetObject, transform);
    }
    // Update is called once per frame
    void Update()
    {

    }
}
